package com.cmsky.open.user.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.cmsky.open.user.model.UserInfo;

public interface UserLoginService {
	/**
	 * 获取登录的商户
	 * @param request
	 * @param response
	 * @return
	 */
	UserInfo getLoginedUser(HttpServletRequest request, HttpServletResponse response);
	/**
	 * 商户登录
	 * @param request
	 * @param response
	 * @param email
	 * @param passwd
	 * @return 返回商户信息
	 */
	UserInfo lgIn(HttpServletRequest request, HttpServletResponse response,String email,String passwd);
	/**
	 * 商户登出
	 * @param request
	 * @param response
	 * @return 
	 */
	void lgOut(HttpServletRequest request, HttpServletResponse response);
	/**
	 * 更改密码
	 * @param username
	 * @param oldPasswd
	 * @param newPasswd
	 * @return
	 */
	boolean updatePasswd(Integer shopId,String oldPasswd,String newPasswd);
}
